<?php

namespace session;

require_once(APP_ROOT . '/modules/log/log.php');
require_once(APP_ROOT . '/modules/log/logCommon.php');
require_once(APP_ROOT . '/modules/common/Common.php');

use log\Log;
use common\Common;

/**
 * Created by JetBrains PhpStorm.
 * User: dodasso
 * Date: 7/15/13
 * Time: 8:36 PM
 * To change this template use File | Settings | File Templates.
 */

class UserDto {
    /* @property int $id */
    public $id;

    /* @property string $username */
    public $username;

    /* @property string $password */
    public $password;

    /* @property int $role */
    public $role;

    /* @property int $status */
    public $status;

    function __construct() {
        Log::LOG_SESSION_FB();

        $this->username = null;
        $this->password = null;
        $this->status   = Common::statusBlocked;
        $this->role     = Common::roleNone;

        Log::LOG_SESSION_FE();
    }

    function __destruct() {
        Log::LOG_SESSION_FB();
        Log::LOG_SESSION_FE();
    }
}